var express = require('express');
var ip = require('ip').address();
var consola = require('consola');
var app = express();
var part = 8080
 
// app.get('/', function (req, res) {
//   res.send('防火,防盗,防隔壁老张!!')
// })
 
// app.listen(part)
// consola.ready(`Server running at : \n- Local   : http://localhost:${part}\n- Network : http://${ip}:${part}`);

// consola.success({
//   message: `Server running at : \n- Local   : http://localhost:${part}\n- Network : http://${ip}:${part}`,
//   badge:true
// });
consola.ready({
  message: `Server running at : \n- Local   : http://localhost:${part}\n- Network : http://${ip}:${part}`,
  badge:true
});


// consola.success('Built!')
// consola.info('Reporter: Some info')
// consola.info({
//   message: 'Reporter: Some info',
//   badge:true
// })
// consola.error(new Error('Foo'))
